﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Clientes.ascx.vb" Inherits="Content_Administracion_Adm_controls_Clientes" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:HiddenField ID="hf_qryBusqueda" runat="server" Value="select * from vwClientes" />
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div class="titulos">
    <asp:Label ID="Label8" runat="server" Text="Administración de Clientes"></asp:Label>
</div>
<br />
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
        <div id="BusqClientes" class="divContent" style="width: 90%">
            <table style="width: 95%">
                <tr>
                    <td style="text-align: center;">
                        <asp:Label ID="Label1" runat="server" CssClass="labell" Text="No. Contrato"></asp:Label>
                    </td>
                    <td style="text-align: center;">
                        <asp:TextBox ID="ContratoCliB" runat="server" CssClass="tx1"></asp:TextBox>
                         <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender13" runat="server" FilterType="Numbers"
                            TargetControlID="ContratoCliB"/>
                    </td>
                    <td style="text-align: center;">
                        &nbsp;
                    </td>
                    <td style="text-align: center;">
                        <asp:Label ID="Label2" runat="server" CssClass="labell" Text="Nombre"></asp:Label>
                    </td>
                    <td style="text-align: center;">
                        <asp:TextBox ID="NombreCliB" runat="server" CssClass="tx10"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender16" runat="server" FilterType="LowercaseLetters,UppercaseLetters,Custom"
                            ValidChars=" .ñÑáéíóúÁÉÍÓÚ" TargetControlID="NombreCliB">
                        </asp:FilteredTextBoxExtender>
                    </td>
                    <td style="text-align: center;">
                        &nbsp;
                    </td>
                    <td style="text-align: center;">
                        <asp:Label ID="Label7" runat="server" CssClass="labell" Text="Institución"></asp:Label>
                    </td>
                    <td style="text-align: center;">
                        <asp:DropDownList ID="institucionCliB" runat="server" Width="150px">
                        </asp:DropDownList>
                    </td>
                    <td style="text-align: center;">
                        &nbsp;
                    </td>
                    <td style="text-align: center;">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center;">
                        <asp:Label ID="Label4" runat="server" CssClass="labell" Text="Perfil"></asp:Label>
                    </td>
                    <td style="text-align: center;">
                        <asp:DropDownList ID="perfilCliB" runat="server" Width="150px">
                        </asp:DropDownList>
                    </td>
                    <td style="text-align: center;">
                        &nbsp;
                    </td>
                    <td style="text-align: center;">
                        <asp:Label ID="Label5" runat="server" CssClass="labell" Text="Promotor"></asp:Label>
                    </td>
                    <td style="text-align: center;">
                        <asp:DropDownList ID="promotorCliB" runat="server" Width="150px">
                        </asp:DropDownList>
                    </td>
                    <td style="text-align: center;">
                        &nbsp;
                    </td>
                    <td style="text-align: center;">
                        <asp:Label ID="Label6" runat="server" CssClass="labell" Text="Despacho"></asp:Label>
                    </td>
                    <td style="text-align: center;">
                        <asp:DropDownList ID="despachoCliB" runat="server" Width="150px">
                        </asp:DropDownList>
                    </td>
                    <td style="text-align: center;">
                        &nbsp;
                    </td>
                    <td style="text-align: center;">
                        <asp:ImageButton ID="SearchButton" runat="server" Alt="Buscar" CausesValidation="false"
                            ImageUrl="~/images/Search44.png" />
                    </td>
                </tr>
                <tr>
                    <td colspan="10">
                        <asp:GridView ID="gv_consultaClientes" runat="server" AllowPaging="True" PageSize="10"
                            PagerStyle-CssClass="PagerColor" CssClass="Gridview" HeaderStyle-CssClass="HeaderFooterGridview"
                            FooterStyle-CssClass="HeaderFooterGridview" CellPadding="5" GridLines="None"
                            AlternatingRowStyle-CssClass="GridviewAlt" AutoGenerateColumns="False">
                            <Columns>
                                <asp:TemplateField ShowHeader="False">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="editarCliente"
                                            Text="Editar" CommandArgument='<%# Bind("cl_id") %>' OnClientClick="javascript:window.scrollTo(0,850);"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="cl_contrato" HeaderText="CONTRATO" />
                                <asp:BoundField DataField="NombreC" HeaderText="NOMBRE" />
                                <asp:BoundField DataField="cartera" HeaderText="CARTERA" DataFormatString="{0:C}"  />
                                <asp:BoundField DataField="inst_nombre" HeaderText="INSTITUCION" />
                                <asp:BoundField DataField="per_nombre" HeaderText="PERFIL" />
                                <asp:BoundField DataField="Promotor" HeaderText="PROMOTOR" />
                                <asp:BoundField DataField="desp_nombre" HeaderText="DESPACHO" />
                                <asp:BoundField DataField="stat_nombre" HeaderText="ESTATUS" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
            <br />
        </div>
        <div id="Div1" class="divContent">
            <table style="width: 100%">
                <tr>
                    <td>
                        <asp:Label ID="Label50" runat="server" Text="Contrato: "></asp:Label>
                    </td>
                    <td align="left" class="style1">
                        <asp:TextBox ID="contCli" runat="server" ValidationGroup="g1" MaxLength="20"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" FilterType="Numbers"
                            TargetControlID="contCli">
                        </asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="contCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender26" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator1" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td align="left" rowspan="14" width="5%">
                    </td>
                    <td>
                        <asp:Label ID="Label106" runat="server" Text="Teléfono: "></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="telCli" runat="server" ValidationGroup="g1" MaxLength="45"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="telCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="RequiredFieldValidator10_ValidatorCalloutExtender"
                            runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                            Enabled="True" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator10"
                            WarningIconImageUrl="~/images/Warning.png" />
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender11" runat="server" FilterType="Numbers"
                            TargetControlID="telCli" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label13" runat="server" Text="Nombre: "></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="nomCli" runat="server" ValidationGroup="g1" MaxLength="45"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="LowercaseLetters,UppercaseLetters,Custom"
                            ValidChars=" .ñÑáéíóúÁÉÍÓÚ" TargetControlID="nomCli">
                        </asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="nomCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender27" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator2" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td>
                        <asp:Label ID="Label94" runat="server" Text="Celular: "></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="celCli" runat="server" ValidationGroup="g1" MaxLength="45" Style="margin-top: 0px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="celCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="RequiredFieldValidator11_ValidatorCalloutExtender"
                            runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                            Enabled="True" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator11"
                            WarningIconImageUrl="~/images/Warning.png" />
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender12" runat="server" FilterType="Numbers"
                            TargetControlID="celCli" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label14" runat="server" Text="Apellido Paterno: "></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="apCli" runat="server" ValidationGroup="g1" MaxLength="20"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="LowercaseLetters,UppercaseLetters,Custom"
                            ValidChars=" .ñÑáéíóúÁÉÍÓÚ" TargetControlID="apCli">
                        </asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="apCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender28" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator3" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td align="left">
                        <asp:Label ID="Label95" runat="server" Text="Correo: "></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="correoCli" runat="server" ValidationGroup="g1" MaxLength="45"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="correoCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="RequiredFieldValidator12_ValidatorCalloutExtender"
                            runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                            Enabled="True" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator12"
                            WarningIconImageUrl="~/images/Warning.png" />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="correoCli"
                            ValidationGroup="g1" Display="None" ErrorMessage="Correo Electrónico Incorrecto"
                            ForeColor="Red" ValidationExpression="[a-z0-9!#$%&amp;'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&amp;'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|asia|jobs|museum)\b"></asp:RegularExpressionValidator>
                        <asp:ValidatorCalloutExtender ID="RegularExpressionValidator9_ValidatorCalloutExtender"
                            runat="Server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                            HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right" TargetControlID="RegularExpressionValidator9"
                            WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label15" runat="server" Text="Apellido Materno: "></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="amCLi" runat="server" ValidationGroup="g1" MaxLength="45"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" FilterType="LowercaseLetters,UppercaseLetters,Custom"
                            ValidChars=" .ñÑáéíóúÁÉÍÓÚ" TargetControlID="amCLi">
                        </asp:FilteredTextBoxExtender>
                    </td>
                    <td>
                        <asp:Label ID="Label96" runat="server" Text="Perfil: "></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="perCli" runat="server" ValidationGroup="g1" Width="150px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="perCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" InitialValue="None"
                            ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender79" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator13" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="LabelCli" runat="server" Text="Fecha de nacimiento: "></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="fechaNacCli" runat="server" ValidationGroup="g1"></asp:TextBox>
                        <asp:ImageButton ID="img_cal1" runat="server" ImageUrl="~/images/calendar.gif" />
                        <asp:CalendarExtender ID="calendar" runat="server" Enabled="True" Format="yyyy-MM-dd"
                            PopupButtonID="img_cal1" TargetControlID="fechaNacCli">
                        </asp:CalendarExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="fechaNacCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender30" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator5" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td>
                        <asp:Label ID="Label97" runat="server" Text="Honorarios: "></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="honCli" runat="server" ValidationGroup="g1" MaxLength="4" ToolTip = "Formato válido: Número decimal entre 0 y 1"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="honCli_FilteredTextBoxExtender" runat="server" FilterType="Custom, Numbers"
                            TargetControlID="honCli" ValidChars=".">
                        </asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="honCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="RequiredFieldValidator14_ValidatorCalloutExtender"
                            runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                            Enabled="True" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator14"
                            WarningIconImageUrl="~/images/Warning.png" />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server"
                            ControlToValidate="honCli" Display="None" ErrorMessage="Formato Incorrecto" ForeColor="Red"
                            ValidationGroup="g1" ValidationExpression="\d+\.\d+"></asp:RegularExpressionValidator>
                        <asp:ValidatorCalloutExtender ID="RegularExpressionValidator10_ValidatorCalloutExtender"
                            runat="Server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                            HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right" TargetControlID="RegularExpressionValidator10"
                            WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label18" runat="server" Text="RFC: "></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="rfcCli" runat="server" ValidationGroup="g1" MaxLength="13" ToolTip = "Formato:4 letras, 6 números y 3 letras y/o números"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="rfcCli"
                            Display="None" ErrorMessage="Formato Incorrecto." ForeColor="Red" ValidationExpression="[A-Z]{4}[0-9]{6}[A-Z0-9]{3}"
                            ValidationGroup="g1">
                        </asp:RegularExpressionValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender70" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RegularExpressionValidator1" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td>
                        <asp:Label ID="Label98" runat="server" Text="Institución: "></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="instCli" runat="server" ValidationGroup="g1" Width="150px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="instCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" InitialValue="None"
                            ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="RequiredFieldValidator15_ValidatorCalloutExtender"
                            runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                            Enabled="True" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator15"
                            WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label19" runat="server" Text="CURP: "></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="curpCli" runat="server" ValidationGroup="g1" MaxLength="18"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator11" runat="server"
                            ControlToValidate="curpCli" Display="None" ErrorMessage="Curp Incorrecto" ForeColor="Red"
                            ValidationGroup="g1" ValidationExpression="^[a-zA-Z]{4}((\d{2}((0[13578]|1[02])(0[1-9]|[12]\d|3[01])|(0[13456789]|1[012])(0[1-9]|[12]\d|30)|02(0[1-9]|1\d|2[0-8])))|([02468][048]|[13579][26])0229)(H|M)(AS|BC|BS|CC|CL|CM|CS|CH|DF|DG|GT|GR|HG|JC|MC|MN|MS|NT|NL|OC|PL|QT|QR|SP|SL|SR|TC|TS|TL|VZ|YN|ZS|SM|NE)([a-zA-Z]{3})([a-zA-Z0-9\s]{1})\d{1}$+">
                        </asp:RegularExpressionValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender83" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RegularExpressionValidator11" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td>
                        <asp:Label ID="Label99" runat="server" Text="Promotor: "></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="promoCli" runat="server" ValidationGroup="g1" Width="150px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="promoCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" InitialValue="None"
                            ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="RequiredFieldValidator16_ValidatorCalloutExtender0"
                            runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                            Enabled="True" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator16"
                            WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label20" runat="server" Text="Calle: "></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="calleCli" runat="server" ValidationGroup="g1" MaxLength="80"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" runat="server" FilterType="LowercaseLetters,UppercaseLetters,Custom,Numbers"
                            ValidChars=" .ñÑáéíóú-" TargetControlID="calleCli">
                        </asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="calleCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender33" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator6" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td>
                        <asp:Label ID="Label100" runat="server" Text="Asesor: "></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="aseCli" runat="server" ValidationGroup="g1" Width="150px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="aseCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" InitialValue="None"
                            ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="RequiredFieldValidator17_ValidatorCalloutExtender1"
                            runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                            Enabled="True" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator17"
                            WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label91" runat="server" Text="Número:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="txt_numero" runat="server" ValidationGroup="g1" MaxLength="45"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender7" runat="server" FilterType="LowercaseLetters,Custom,Numbers,UppercaseLetters"
                            ValidChars=" -" TargetControlID="txt_numero">
                        </asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="txt_numero"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator24" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td>
                        <asp:Label ID="Label101" runat="server" Text="Despacho: "></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="despCli" runat="server" ValidationGroup="g1" Width="150px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="despCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" InitialValue="None"
                            ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="RequiredFieldValidator18_ValidatorCalloutExtender2"
                            runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                            Enabled="True" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator18"
                            WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label92" runat="server" Text="Colonia:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="txt_colonia" runat="server" ValidationGroup="g1" MaxLength="45"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" runat="server" FilterType="LowercaseLetters,UppercaseLetters,Custom,Numbers"
                            TargetControlID="txt_colonia" ValidChars=" .-ñÑáéíóúÁÉÍÓÚ">
                        </asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" ControlToValidate="txt_colonia"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender84" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator23" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td>
                        <asp:Label ID="Label102" runat="server" Text="Discresional: "></asp:Label>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RBL_disc" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="SI" Value="SI"></asp:ListItem>
                            <asp:ListItem Text="NO" Value="NO" Selected="True"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label30" runat="server" Text="C.P.: "></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="cpCli" runat="server" ValidationGroup="g1" MaxLength="6"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" FilterType="Numbers"
                            TargetControlID="cpCli">
                        </asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="cpCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender34" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator7" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td>
                        <asp:Label ID="Label103" runat="server" Text="Cartera Inicial: "></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="carteraCli" runat="server" ValidationGroup="g1" MaxLength="45" 
                            Width="150px"></asp:TextBox>
                        <%--<asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="carteraCli"
                            Mask="999,999,999.99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                            OnInvalidCssClass="MaskedEditError" MaskType="Number" InputDirection="LeftToRight"
                            AcceptNegative="None" DisplayMoney="Left" ErrorTooltipEnabled="True" />--%>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Formato no valido."
                                    Display="None" ValidationExpression="^[0-99999999999]+(\.[0-9]+)?$" ForeColor="Red" 
                                                    ControlToValidate="carteraCli"></asp:RegularExpressionValidator>
                                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender17" runat="server" 
                                                     TargetControlID="carteraCli" 
                                                    Enabled="True" ValidChars="0123456789."></asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="carteraCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender80" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator19" WarningIconImageUrl="~/images/Warning.png" />
                        <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Formato no válido, usa sólo números y un punto decimal"
                            Display="none" ValidationExpression="\d+(\.\d{1,2})?" ForeColor="Red" ControlToValidate="carteraCli"
                            ValidationGroup="g1">

                        </asp:RegularExpressionValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="Server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right"
                            TargetControlID="RegularExpressionValidator2" WarningIconImageUrl="~/images/Warning.png" />
                             <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender13" runat="server" FilterType="Numbers,Custom"
                                ValidChars="." TargetControlID="carteraCli"/>--%>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label93" runat="server" Text="País:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="txt_pais" runat="server" ValidationGroup="g1" MaxLength="45"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender9" runat="server" FilterType="LowercaseLetters,UppercaseLetters,Custom"
                            ValidChars=" .ñÑáéíóúÁÉÍÓÚ" TargetControlID="txt_pais">
                        </asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" ControlToValidate="txt_pais"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator25" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td>
                        &nbsp;
                        <asp:Label ID="Label109" runat="server" Text="Saldo Inicial" Visible="False"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                        <asp:TextBox ID="txt_si" runat="server" Visible="False" Width="150px"></asp:TextBox>
                        <%--<asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txt_si"
                            Mask="999,999,999.99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                            OnInvalidCssClass="MaskedEditError" MaskType="Number" InputDirection="LeftToRight"
                            AcceptNegative="None" DisplayMoney="Left" ErrorTooltipEnabled="True" />--%>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Formato no valido."
                                    Display="None" ValidationExpression="^[0-99999999999]+(\.[0-9]+)?$" ForeColor="Red" 
                                                    ControlToValidate="txt_si"></asp:RegularExpressionValidator>
                                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender18" runat="server" 
                                                     TargetControlID="carteraCli" 
                                                    Enabled="True" ValidChars="0123456789."></asp:FilteredTextBoxExtender>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label32" runat="server" Text="Estado: "></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="edocli" runat="server" ValidationGroup="g1" MaxLength="45"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender10" runat="server" FilterType="LowercaseLetters,UppercaseLetters,Custom"
                            ValidChars=" .ñÑáéíóúÁÉÍÓÚ" TargetControlID="edocli">
                        </asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="edocli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator8" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td>
                        &nbsp;
                        <asp:Label ID="Label110" runat="server" Text="Saldo Final" Visible="False"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                        <asp:TextBox ID="txt_sf" runat="server" Visible="False" Width="150px"></asp:TextBox>
                        <%--<asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="txt_sf"
                            Mask="999,999,999.99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                            OnInvalidCssClass="MaskedEditError" MaskType="Number" InputDirection="LeftToRight"
                            AcceptNegative="None" DisplayMoney="Left" ErrorTooltipEnabled="True" />--%>
                             <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="Formato no valido."
                                    Display="None" ValidationExpression="^[0-99999999999]+(\.[0-9]+)?$" ForeColor="Red" 
                                                    ControlToValidate="txt_sf"></asp:RegularExpressionValidator>
                                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender19" runat="server" 
                                                     TargetControlID="carteraCli" 
                                                    Enabled="True" ValidChars="0123456789."></asp:FilteredTextBoxExtender>

                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label31" runat="server" Text="Ciudad: "></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="munCli" runat="server" ValidationGroup="g1" MaxLength="45"></asp:TextBox>
                        <asp:FilteredTextBoxExtender ID="munCli_FilteredTextBoxExtender" runat="server" FilterType="LowercaseLetters,UppercaseLetters,Custom"
                            TargetControlID="munCli" ValidChars=" .ñÑáéíóúÁÉÍÓÚ">
                        </asp:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="munCli"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender36" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator9" WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
            <br />
            <div class="titulos">
                <asp:Label ID="lbl_headerUsers" runat="server" Text="Datos de Cuenta"></asp:Label>
            </div>
            <br />
            <table style="width: 100%">
                <tr>
                    <td>
                        <asp:Label ID="Label104" runat="server" Text="Cuenta: "></asp:Label>
                    </td>
                    <td colspan="2">
                        <asp:TextBox ID="cuentaCl" runat="server" ValidationGroup="g1" MaxLength="25"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="cuentaCl"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender81" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator20" WarningIconImageUrl="~/images/Warning.png" />
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender14" runat="server" FilterType="Custom,Numbers"
                            ValidChars=" -" TargetControlID="cuentaCl" />
                    </td>
                    <td>
                        <asp:Label ID="Label107" runat="server" Text="Cuenta CLABE: " Width="106px"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="cuentaBCl" runat="server" ValidationGroup="g1" MaxLength="25"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ControlToValidate="cuentaBCl"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender82" runat="server" CloseImageUrl="~/images/close.gif"
                            CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                            TargetControlID="RequiredFieldValidator21" WarningIconImageUrl="~/images/Warning.png" />
                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender15" runat="server" FilterType="Numbers"
                            TargetControlID="cuentaBCl" />
                    </td>
                    <td>
                        <asp:Label ID="Label108" runat="server" Text="Institución: "></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="instCliCta" runat="server" ValidationGroup="g1" Width="150px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ControlToValidate="instCliCta"
                            Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" InitialValue="None"
                            ValidationGroup="g1"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="RequiredFieldValidator18_ValidatorCalloutExtender3"
                            runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                            Enabled="True" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator22"
                            WarningIconImageUrl="~/images/Warning.png" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td colspan="2">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:LinkButton ID="lnk_editaC" runat="server" Visible="false">Editar Cotitulares</asp:LinkButton>
                    </td>
                    <td>
                        <asp:LinkButton ID="lnk_editaB" runat="server" Visible="false">Editar Beneficiarios</asp:LinkButton>
                    </td>
                    <td>
                        <asp:Label ID="Label105" runat="server" Text="Estatus:"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddl_estatus" runat="server" Width="150px">
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:LinkButton ID="lnk_contrato" runat="server" Visible="false">Reimprimir Contrato</asp:LinkButton>
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="center" colspan="7">
                        <br />
                        <asp:Button ID="btn_regCli" runat="server" CssClass="button2" Text="Siguiente" ValidationGroup="g1" />
                        <asp:Button ID="btn_modCli" runat="server" CssClass="button2" Text="Modificar" ValidationGroup="g1"
                            Visible="false" />
                        <asp:Button ID="btn_canCli" runat="server" CssClass="button2" Text="Cancelar" CausesValidation="false" />
                        <br />
                        <asp:Label ID="lb_error" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            </td> </tr> </table>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
